package com.kaifamiao.month03.day0323;

import java.util.Scanner;

public class Demo {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入学生成绩");
        int score = in.nextInt();
        if(score >= 90 && score <= 100){
            System.out.println("成绩等级：A");
            System.out.println("优秀！");
        }else if(score >= 80){
            System.out.println("成绩等级：B");
            System.out.println("良好！！");
        }else if(score >= 70){
            System.out.println("成绩等级：C");
            System.out.println("一般！！");
        }else if(score >= 60){
            System.out.println("成绩等级：D");
            System.out.println("刚刚及格！！");
        }else{
            System.out.println("成绩等级：E");
            System.out.println("长点心吧！！");
        }
    }
}
